import Vue from 'vue'
import { Store, install } from 'vuex'
import banner from './banner'
import setting from './setting'
import about from './about'
import project from './project'

// 如果使用了 CDN 引入 vuex，就不需要再次安装了
if (!window.Vuex) {
    install(Vue)
}

export default new Store({
    strict: true,
    modules: {
        banner,
        setting,
        about,
        project
    }
})
